from flask_restful import fields

stu_fields = {
    'id':fields.Integer,
    'name':fields.String,
    'phone':fields.String,
    'info':fields.String,
    'create_time':fields.DateTime,
    'status':fields.Boolean,
    'photo':fields.String,
    'money':fields.Float,
    'course_num':fields.Integer,
    'solo_num':fields.Integer,
    'vip':fields.DateTime,
}
teacher_fields = {
    "id":fields.Integer,
    'name':fields.String,
    'attention_num':fields.Integer,
    'phone':fields.Integer,
    'password':fields.String,
    'info':fields.String,
    'create_time':fields.DateTime,
    'status':fields.Integer,
    'photo':fields.String
}

course_fields = {
    'id':fields.Integer,
    'name':fields.String,
    'info':fields.String,
    'create_time':fields.DateTime,
    'start_time':fields.DateTime,
    'end_time':fields.DateTime,
    'total':fields.DateTime,
    'total_time':fields.Integer,
    'photo':fields.String,
    'money':fields.Float,
    'type':fields.Integer,
    'teacher_num':fields.Integer,
    'collect':fields.Integer,
    'course_num':fields.Integer,
    'buy_num':fields.Integer,
    'stu_num':fields.Integer,
    'solo_num':fields.Integer,
    'vip_free':fields.DateTime,

}

exec_fields = {
    'id':fields.Integer,
    'name':fields.String
}

carouse_fields = {
    'id':fields.Integer,
    "url":fields.String,
    'link_type':fields.Integer,
    'link_content':fields.String
}

common_fields = {
    'id':fields.Integer,
    'content':fields.String,
    'create_time':fields.DateTime
}